home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Champak 52
/
Volume 52 - JOGO DISK .iso
/
Games
/
skipandgouls.swf
/
scripts
/
__Packages
/
sarbakan
/
utils
/
Delegate.as
next >
Wrap
Text File
|
2007-10-01
|
720b
|
31 lines
class sarbakan.utils.Delegate extends Object
{
function Delegate()
{
super();
}
function DelegateArgs(f)
{
this.func = f;
}
static function create(obj, func)
{
var _loc2_ = function()
{
var _loc3_ = arguments.callee.target;
var _loc4_ = arguments.callee.func;
var _loc2_ = arguments.callee.arg;
_loc2_ = _loc2_.concat(arguments);
return _loc4_.apply(_loc3_,_loc2_);
};
_loc2_.target = obj;
_loc2_.func = func;
_loc2_.arg = arguments.slice(2);
return _loc2_;
}
function createDelegate(obj)
{
return sarbakan.utils.Delegate.create(obj,this.func);
}
}